﻿@{
    Layout = null;
}
@using LY.Manage.WebApp.App_Start;
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>铁路运输装卸设备信息管理系统</title>
    <!--引入文件-->
    <link href="~/Content/themes/default/easyui.css" rel="stylesheet" />
   <link href="~/Content/js/jquery-easyui-1.3.2/themes/default/easyui.css" rel="stylesheet" />
   
    <link href="~/Content/themes/icon.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/jquery.easyui.min.js"></script>
    <script src="~/Scripts/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <link href="~/Content/css/page/index.css" rel="stylesheet" />


    <link href="~/Content/BaseStyle.css" rel="stylesheet" />

    <!--加载通用css-->
    <link href="~/Content/css/base.css" rel="stylesheet" />
    <!--加载960CSS框架-->
     <link href="~/Content/css/960/fluid/reset.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/960/fluid/text.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/960/fluid/grid.css" rel="stylesheet" type="text/css" />

    <!--加载按钮CSS-->
    <link href="~/Content/css/btns/css3btn.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/btns/sexybuttons.css" rel="stylesheet" type="text/css" />


    <!--加载组件CSS-->
   <link href="~/Content/js/jquery-plugin/showloading/showLoading.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/js/jquery-plugin/ztree/css/zTreeStyle.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/js/jquery-plugin/jnotify/jquery.jnotify.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/js/jquery-plugin/jqgrid/default/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" /> <!--中有用到 如果引入jqgrid也有用到-->
    <!--加载样式修正CSS-->
    <link href="~/Content/css/hack/fix.css" rel="stylesheet" type="text/css" />

    <link href="~/Content/css/icon/icon.css" rel="stylesheet" />

   
    <style type="text/css"  >
        .txt{
            font-size:20px;
            font-weight:bold;
            color:blue;
            margin-top:15px;
            margin-left:100px;
            float:left;
        }
       
    </style>



    <script type="text/javascript">

        //获取url中的参数
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r != null) return unescape(r[2]); return null; //返回参数值
        }

        $(function () {

        });
       
        function bindClickEvent()
        {
            $(".detailLink").click(function () {
               
                var title = $(this).text();
                var url = $(this).attr('url');
                var isExist = $('#divTabs').tabs('exists', title);
                if (isExist)
                {
                    $('#divTabs').tabs('select', title);
                    return;
                }
                //alert(url);
                $('#divTabs').tabs('add', {

                    title: title ,
                    content: showContent(url),
                    closable: true
                });
            });
        }
        function showContent(url)
        {
            var str = '<iframe src="'+url+'" style="width:100%;height:100%;" frameborder="0" ></iframe>';
            return str;
        }
        function exit() {
            window.location.href = "/Login/Index";
        }

       
     

        //完成添加后调用该方法
        function afterAdd(data) {


            if (data.IsSuccess) {
                $('#addDiv').dialog('close');   //关闭dialog
                //$('#tt').datagrid('reload');//加载表格不会跳到第一页。
                //$("#addForm input").val("");
            }
        }


        
    </script>
</head>
<body class="easyui-layout">
   
    <!--顶部区域-->
   
    @*<div class="head-north" data-options="region:'north',border:false" style="height: 66px; background-image: url('/Content/Images/headbg.png'); background-repeat: repeat-x; ">
        <span class="head head-right">
          
        </span>
        <span class="head-left">
           @ViewBag.HeadTitle
        </span>
        <div id="wnav"></div>
     
    </div>*@
   
    <div region="north" class="head-north" split="true" border="false">
        @*<div class="head-north" data-options="region:'north',border:false" style="height: 66px; background-image: url('/Content/Images/headbg.png'); background-repeat: repeat-x; ">*@
        @*<div class="head head-right">
            单位名称是：
            </div>*@
        <div class="head head-right">
            <a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#mm_user'">当前用户: @ViewBag.Yonghu    </a>




            <div id="mm_user" style="width:80px;">
               


                @*<div data-options="iconCls:'icon-edit'" class="changepwd"><a onclick="updatepwd('@ViewBag.id');">我的消息</a></div>*@
                @*<div class="menu-sep"></div>*@
                <div data-options="iconCls:'icon-user_go'" class="loginOut"><a onclick="exit();">安全退出</a></div>
            </div>
        </div>
            <span class="head-left">
                @ViewBag.HeadTitle
            </span>


        </div>
    <!--左侧区域-->
   
    @*<div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
        <div id="wnav"></div>
    </div>*@
   

    @*<div data-options="region:'west',split:true" title="导航菜单" style="width:180px;padding:2px;">
        <div id="wnav">*@@*</div>
    </div>*@
          
           
           <div data-options="region:'west',split:true" title="导航菜单" style="width:180px;padding:2px;">
        <!--accordion部分-->
        <div id="menuzhi" class="easyui-accordion" style="width:auto;height:auto;">

            @{
                List<MenuInfo> listMenus=ViewBag.AllActionList;

                var pMenus= listMenus.Where(u => u.ParentCode == "0");

                foreach (var item in pMenus)
                {
                    
                    <div title="@item.MenuName" data-options="iconCls:'@item.IconClass'" style="overflow: auto; padding: 5px;  ">
                        @{
                    var cMenu = listMenus.Where(u => u.ParentCode == item.MenuCode);
                    foreach (var menu in cMenu)
                    {

                        <img src="~/Content/css/icon/icon/@menu.IconClass" />
                                <a href="javascript:void(0)" class="detailLink" url="@menu.URL">@menu.MenuName</a><br />
                            }
                        }
                    </div>
                }
            }
          
        </div>
    </div>
            <div data-options="region:'south',border:false" style="height: 30px; background: #D2E0F2;">
                <div class="footer">
                    @ViewBag.FootTitile 
                    </div>

                </div>
            <!--中间区域-->
            <div data-options="region:'center'">
                <!--这里是页签 Tabs-->
                <div id="divTabs" class="easyui-tabs" style="width:700px;height:250px" fit="true">
                  
                </div>
            </div>
            <div id="noticeDialog" class="easyui-dialog" title="公告" data-options="iconCls:'icon-tip',closed:true,resizable:true">
        <table id="noticeTable">

            @if (@ViewBag.biaoshi == 0)
            {
               
            }
            else
            {
                 <tr><td><a href ="javascript:void(0);" onclick="tezhong()">@ViewBag.tezhonggeshu</a></td></tr>
            }
                 
            @if (@ViewBag.diaorushu == 0)
            {

            }
            else
            {
                 <tr><td><a href="javascript:void(0);" onclick="diaoru()">@ViewBag.diaoruxiaoxi</a></td></tr>
            }

          
           
          
          
          
            
        </table>
    </div>
    <!--添加数据-->
    <div id="addDiv" style="display:none; overflow:hidden;">
        <iframe id="addFrame" style="width:100%;height:100%;" frameborder="0" scrolling="auto"></iframe>
    </div>
    <div id="editDiv" style="display: none; overflow: hidden;">
        <iframe id="editFrame" style="width:100%;height:100%;" frameborder="0" scrolling="auto"></iframe>
    </div>
</body>
</html>
